/**
 * 商品标签常量
 */
export default {
  /**
   * 至尊款
   */
  get SUPREME() {
    return 1
  },
  /**
   * 稀有款
   */
  get RARE() {
    return 2
  },
  /**
   * 豪华款
   */
  get LUXURY() {
    return 3
  },
  /**
   * 普通款
   */
  get ORDINARY() {
    return 4
  },

  /**
   * 获取描述
   */
  info(v) {
    let s = "";
    let c = ["#fff", "#E24848"];

    switch (v) {
      case this.SUPREME:
        s = "至尊款";
        c = ["#EF9D9D", "#E24C4C"]
        break;
      case this.RARE:
        s = "稀有款";
        c = ["#C6BBFD", "#8872FD"]
        break;
      case this.LUXURY:
        s = "豪华款";
        c = ["#F5D2BE", "#EEAB88"]
        break;
      case this.ORDINARY:
        s = "普通款";
        c = ["#B1CEFC", "#6BA2FA"]
        break;
      default:
        break;
    }
    
    return {
      desc: s,
      color: c
    }
  }
}
